package version

import (
	"fmt"
	"os"
)

var (
	VERSION    string = "1.0.4"
	BUILD_DATE string = "2021-10-22"
	AUTHOR     string = "liulei02"
	BUILD_INFO string = ""
	GO_VERSION string = "go version go1.13"
)

func Version() {
	fmt.Fprintf(os.Stderr, "version\t%s\n", VERSION)
	fmt.Fprintf(os.Stderr, "build\t%s\n", BUILD_DATE)
	fmt.Fprintf(os.Stderr, "author\t%s\n", AUTHOR)
	fmt.Fprintf(os.Stderr, "info\t%s\n", BUILD_INFO)
	fmt.Fprintf(os.Stderr, "go\t%s\n", GO_VERSION)
}
